package com.syl.proxy.bean;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author syl
 * @create 2019-08-06 14:39
 **/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class Proxy {
    // debug 模式下禁用所有缓存
    private boolean debug;
    /** A boolean parameter name to enable logging of input and target URLs to the servlet log. */
    private boolean log;
    /** A boolean parameter name to enable forwarding of the client IP  */
    private boolean forwardIP = true;
    /** A boolean parameter name to keep HOST parameter as-is  */
    private boolean preserveHost = false;
    /** A boolean parameter name to keep COOKIES as-is  */
    private boolean preserveCookies = false;
    /** User agents shouldn't send the url fragment but what if it does? */
    private boolean sendUrlFragment = true;
    /** A boolean parameter name to have auto-handle redirects */
    private boolean handleRedirects = false;
    /** use default HttpClient system properties */
    private boolean useSystemProperties = true;
    private int connectTimeout = -1;
    private int readTimeout = -1;
    private int connectionRequestTimeout = -1;
    private int maxConnections = -1;



}
